home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / src / gas-211 / gas / config / tc-sparc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-30  |  1.9 KB  |  68 lines

  1. /* tc-sparc.h - Macros and type defines for the sparc.
  2.    Copyright (C) 1989, 1990, 1991, 1992 Free Software Foundation, Inc.
  3.  
  4.    This file is part of GAS, the GNU Assembler.
  5.  
  6.    GAS is free software; you can redistribute it and/or modify
  7.    it under the terms of the GNU General Public License as
  8.    published by the Free Software Foundation; either version 2,
  9.    or (at your option) any later version.
  10.  
  11.    GAS is distributed in the hope that it will be useful, but
  12.    WITHOUT ANY WARRANTY; without even the implied warranty of
  13.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
  14.    the GNU General Public License for more details.
  15.  
  16.    You should have received a copy of the GNU General Public
  17.    License along with GAS; see the file COPYING.  If not, write
  18.    to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
  19.  
  20. #define TC_SPARC 1
  21.  
  22. #define LOCAL_LABELS_FB
  23.  
  24. #ifdef BFD_ASSEMBLER
  25.  
  26. #define TARGET_ARCH bfd_arch_sparc
  27. #ifdef OBJ_AOUT
  28. #define TARGET_FORMAT "a.out-sunos-big"
  29. #endif
  30. #ifdef OBJ_BOUT
  31. #define TARGET_FORMAT "b.out.big"
  32. #endif
  33. #ifdef OBJ_ELF
  34. #define TARGET_FORMAT "elf32-sparc"
  35. #define LOCAL_LABEL(name)    ((name)[0] == '.')
  36. #endif
  37.  
  38. #else
  39.  
  40. #ifdef OBJ_BOUT
  41. #define DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE ((0x103 << 16) | BMAGIC)    /* Magic number for header */
  42. #else
  43. #ifdef OBJ_AOUT
  44. #define DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE ((0x103 << 16) | OMAGIC)    /* Magic number for header */
  45. #endif /* OBJ_AOUT */
  46. #endif /* OBJ_BOUT */
  47.  
  48. #define AOUT_MACHTYPE 3
  49.  
  50. #define NEED_FX_R_TYPE
  51.  
  52. #define tc_headers_hook(a)        {;}    /* don't need it. */
  53. #define tc_crawl_symbol_chain(a)    {;}    /* don't need it. */
  54.  
  55. #endif /* BFD_ASSEMBLER */
  56.  
  57. #ifndef BFD_ASSEMBLER
  58. #define md_convert_frag(h,f)        {as_fatal ("sparc convert_frag\n");}
  59. #else
  60. #define md_convert_frag(b,s,f)        {as_fatal ("sparc convert_frag\n");}
  61. #endif
  62.  
  63. void tc_aout_pre_write_hook ();
  64.  
  65. #define LISTING_HEADER "SPARC GAS "
  66.  
  67. /* end of tc-sparc.h */
  68.